package cn.com.huzo.model.entities.manufacture;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 领料单主表实体类
 * 
 * @author 吴旭
 */
public class RequisitionSlipHeaderEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = 8702229079116427533L;
    private Long HeaderId;                       // 标识，自动增加
    private String BillNo;                       // 单据号（自动生成流水号）      
    private Long ProductId;
    private Long ProcessingContractId;           // 加工合同ID
    private String ProcessingContractNo;         // 加工合同号
    private Long RequisitionUnit;                // 领料单位
    private String RequisitionUnitName;          // 领料单位名称
    private String StyleNo;                      // 款号（由明细中款号组成301/302)
    private String IcLabDipIndication;           // IC色样指示
    private String EmbroideryLaceAndOther;       // 刺绣花边及其他物品单耗
    private String Description;

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public String getBillNo() {
        return BillNo;
    }

    public void setBillNo(String BillNo) {
        this.BillNo = BillNo;
    }

    public Long getProductId() {
        return ProductId;
    }

    public void setProductId(Long ProductId) {
        this.ProductId = ProductId;
    }

    public Long getProcessingContractId() {
        return ProcessingContractId;
    }

    public void setProcessingContractId(Long ProcessingContractId) {
        this.ProcessingContractId = ProcessingContractId;
    }

    public String getProcessingContractNo() {
        return ProcessingContractNo;
    }

    public void setProcessingContractNo(String ProcessingContractNo) {
        this.ProcessingContractNo = ProcessingContractNo;
    }

    public Long getRequisitionUnit() {
        return RequisitionUnit;
    }

    public void setRequisitionUnit(Long RequisitionUnit) {
        this.RequisitionUnit = RequisitionUnit;
    }

    public String getRequisitionUnitName() {
        return RequisitionUnitName;
    }

    public void setRequisitionUnitName(String RequisitionUnitName) {
        this.RequisitionUnitName = RequisitionUnitName;
    }

    public String getStyleNo() {
        return StyleNo;
    }

    public void setStyleNo(String StyleNo) {
        this.StyleNo = StyleNo;
    }

    public String getIcLabDipIndication() {
        return IcLabDipIndication;
    }

    public void setIcLabDipIndication(String IcLabDipIndication) {
        this.IcLabDipIndication = IcLabDipIndication;
    }

    public String getEmbroideryLaceAndOther() {
        return EmbroideryLaceAndOther;
    }

    public void setEmbroideryLaceAndOther(String EmbroideryLaceAndOther) {
        this.EmbroideryLaceAndOther = EmbroideryLaceAndOther;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof RequisitionSlipHeaderEntity)) {
            return false;
        }

        final RequisitionSlipHeaderEntity that = (RequisitionSlipHeaderEntity) o;

        return new EqualsBuilder()
                .append(this.getHeaderId(), that.getHeaderId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + getHeaderId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
